package com.example.blog.service;

import com.example.blog.model.ArticleInfo;
import org.apache.ibatis.annotations.Param;


import java.sql.Timestamp;
import java.util.List;

/**
 * @Author YJ
 * @Date 2023/9/5 15:33
 * Description:
 */

public interface IArticleService {
    List<ArticleInfo> getListById(int userId);

    int del(int blogId,int userId);

    int add(ArticleInfo articleInfo);

    ArticleInfo getArticleByIdAndBlogId(int blogId,int userId);

    int updateByUserId(int blogId, String title, String content, int userId, Timestamp updateTime);

    ArticleInfo getDetailByBlogId(int blogId);

    int getReadCountByUserId(int userId);

    int incrementReadCount(int blogId);

    List<ArticleInfo> getListByPage(int pSize,int offset);

    int getCount();
}
